﻿using System.Globalization;
using System.Resources;

namespace Ue.Components.FileResources
{
    public class XmlResourceManager : FileResourceManager
    {
        public XmlResourceManager(string directory, string baseName)
            : this(directory, baseName, ".xml") { }

        public XmlResourceManager(string directory, string baseName, string extension)
            : base(directory, baseName, extension) { }

        protected override ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents)
        {
            return new XmlResourceSet(this.GetResourceFileName(culture));
        }
    }
}
